//
//  EGShopCartManager.h
//  Orchard
//
//  Created by ios001 on 16/8/23.
//  Copyright © 2016年 itcast. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "EGShopCartModel.h"


@class EGShopCartManager;
@protocol EGShopCartManagerDelegate <NSObject>

@optional

-(void)getGoodsList:(EGShopCartManager *)manager withList:(NSMutableArray<EGShopCartModel *>*)goodsList;


@end

@interface EGShopCartManager : NSObject

INTERFACE_SINGLETON(EGShopCartManager)


//MARK: 添加商品
-(void)addGoods:(EGShopCartModel *)goods;

//MARK: 减少商品
-(void)ReduceGoods:(EGShopCartModel *)goods;


//MARK: 商品的总量
@property (nonatomic, assign)NSInteger totalGoods;


//代理属性
@property (nonatomic, copy)id <EGShopCartManagerDelegate> delegate;


@end
